package org.dromara.system.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
import org.dromara.system.domain.SysRole;
import org.dromara.system.domain.XfNews;
import org.dromara.system.domain.query.XfNewsQuery;
import org.dromara.system.domain.vo.XfNewsVo;

import java.util.List;

public interface XfNewsMapper extends BaseMapperPlus<XfNews, XfNewsVo> {

    List<XfNewsVo> queryList(XfNewsQuery query);

    Page<XfNewsVo> selectPageXfNewsList(@Param("page") Page<XfNews> page,@Param(Constants.WRAPPER) Wrapper<XfNews> queryWrapper);

    XfNewsVo selectXfNewsById(@Param("newsId") Long newsId);
}
